package com.ddxz.middleground.meta;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.ApplicationPidFileWriter;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * class description
 *
 * @author 朱宗刚
 * @version 1.0.0
 * @date 2020/8/21
 */

@SpringBootApplication
@EnableSwagger2
@EnableDiscoveryClient
public class MetaApplication {
    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(MetaApplication.class);
        application.addListeners(new ApplicationPidFileWriter());
        application.run(args);
    }
}
